<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
    <div class="pageHeader">
        <div class="searchBar orderType">
            <ul class="searchContent">
                <li>
                    <label><@label key="orderTypeCode.C,colon">订单类型编号：</@label></label> 
                    <input type="text" class="textInput" name="orderTypeCode" value="${condition.orderTypeCode!''}" />
                </li>
                <li>
                    <label><@label key="orderTypeText.C,colon">订单类型描述：</@label></label> 
                    <input type="text" class="textInput" name="orderTypeText" value="${condition.orderTypeText!''}" />
                </li>
                <li class="lockFlag">
                    <div style="float: left;">
                        <label><@label key="lockFlag.L">锁定标记：</@label></label> <select
                            name="lockFlag">
                            <option value=""><@label key="all.C">所有</@label></option>
                            <option value="0"<#if condition.lockFlag?? &&
                                condition.lockFlag == 0> selected="selected"</#if>><@label
                                key="no.C">否</@label></option>
                            <option value="1"<#if condition.lockFlag?? &&
                                condition.lockFlag == 1> selected="selected"</#if>><@label
                                key="yes.C">是</@label></option>
                        </select>
                    </div></li>
                <li class="query">
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit"><@label key="query.B">查询</@label></button>
                        </div>
                    </div></li>
            </ul>
        </div>
    </div>
</form>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <@buttonRight menuCode="ORDERTYPE_ADD" labelKey="add.B" defalutName="新增"><li>
                <a class="add" target="dialog" mask="true" resizeable="false" width="480" height="220"
                href="${rc.getContextPath()}/manage/orderType/orderType_add?navTabId=${navTabId!''}"
                rel="addOrderType"
                title="<@label key='addOrderType.D'>新增订单类型</@label>">
                <span><@label key="add.B">新增</@label></span></a>
            </li></@buttonRight> 
            <@buttonRight menuCode="ORDERTYPE_EDIT" labelKey="edit.B" defalutName="编辑"><li>
                <a class="edit" target="dialog" mask="true" resizeable="false" width="580" height="300"
                href="${rc.getContextPath()}/manage/orderType/modifyOrderType?orderTypeCode={orderType_code}&navTabId=${navTabId!''}"
                rel="editOrderType"
                title="<@label key='editOrderType.D'>编辑订单类型</@label>">
                <span><@label key="edit.B">编辑</@label></span></a>
            </li></@buttonRight>
            <@buttonRight menuCode="ORDERTYPE_VIEW" labelKey="view.B" defalutName="详情"><li>
                <a class="icon" target="dialog" mask="true" width="580"
                height="300"
                href="${rc.getContextPath()}/manage/orderType/viewOrderType?orderTypeCode={orderType_code}&navTabId=${navTabId!''}"
                rel="viewOrderType"
                title="<@label key='viewOrderType.D'>订单类型详情</@label>">
                <span><@label key="view.B">详情</@label></span> </a>
            </li></@buttonRight> 
            <@buttonRight menuCode="ORDERTYPE_DEL" labelKey="delete.B" defalutName="删除"><li>
                <a class="delete" target="selectedTodo"
                href="${rc.getContextPath()}/manage/orderType/deleteOrderType?navTabId=${navTabId!''}"
                postType="string" rel="orderTypeCodes" callback="batchjobAjaxDone"
                title="<@label key='confirmDelOrderType.M'>确认要删除选择的订单类型吗？</@label>">
                <span><@label key="delete.B">删除</@label></span></a>
            </li></@buttonRight>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="135"
        style="overflow: scroll;">
        <thead>
            <tr>
                <th width="22"><input type="checkbox" group="orderTypeCodes"
                    class="checkboxCtrl">
                </th>
                <th width="40"><@label key="serialNumber.C">序号</@label></th>
                <th width="100" orderField="orderTypeCode" 
                    <#if (page.orderField?? && page.orderField == 'orderTypeCode')>
                        class="${page.orderDirection!''}"
                    </#if>>
                    <@label key="orderTypeCode.C">订单类型编号</@label>
                </th>
                <th width="100" orderField="orderTypeText"
                    <#if (page.orderField?? && page.orderField == 'orderTypeText')>
                        class="${page.orderDirection!''}"
                    </#if>>
                    <@label key="orderTypeText.C">订单类型描述</@label>
                </th>
                <th width="50" orderField="lockFlag"
                    <#if (page.orderField?? && page.orderField == 'lockFlag')>
                        class="${page.orderDirection!''}"
                    </#if>>
                    <@label    key="lockFlag.C">锁定标记</@label>
                </th>
                <th width="100" orderField="createUser"
                    <#if (page.orderField??    && page.orderField == 'createUser')>
                        class="${page.orderDirection!''}"
                    </#if>>
                    <@label    key="createUser.C">创建人</@label>
                </th>
                <th width="100" orderField="createDateTime"
                    <#if (page.orderField?? && page.orderField == 'createDateTime')>
                        class="${page.orderDirection!''}"
                    </#if>>
                    <@label    key="createDateTime.C">创建时间</@label>
                </th>
                <th width="100" orderField="modifyUser"
                    <#if (page.orderField??    && page.orderField == 'modifyUser')>
                        class="${page.orderDirection!''}"
                    </#if>>
                    <@label    key="modifyUser.C">修改人</@label>
                </th>
                <th width="100" orderField="modifyDateTime"
                    <#if (page.orderField?? && page.orderField == 'modifyDateTime')>
                        class="${page.orderDirection!''}"
                    </#if>>
                    <@label    key="modifyDateTime.C">修改时间</@label>
                </th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as orderType>
            <tr target="orderType_code" rel="${orderType.orderTypeCode!''}">
                <td><input name="orderTypeCodes" value="${orderType.orderTypeCode!''}"
                    type="checkbox">
                </td>
                <td>${page.startRow + orderType_index}</td>
                <td>${orderType.orderTypeCode!''}</td>
                <td>${orderType.orderTypeText!''}</td>
                <td><#if (orderType.lockFlag == 1)><@label
                    key="yes.C">是</@label><#else><@label key="no.C">否</@label></#if></td>
                <td>${orderType.createUser!''}</td>
                <td>${orderType.createDateTime?string("yyyy-MM-dd HH:mm:ss")}</td>
                <td>${orderType.modifyUser!''}</td>
                <td>${orderType.modifyDateTime?string("yyyy-MM-dd HH:mm:ss")}</td>
            </tr>
            </#list> <#else>
            <tr>
                <td colspan="9" class="noData">======<@label
                    key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if> <#else>
            <tr>
                <td colspan="9" class="noData">======<@label
                    key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/panelBar.html">
</div>